<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <jsp:include page="heading.jsp"></jsp:include>
    <%@ page import="java.util.*,java.text.*"%>
    <jsp:useBean id="dao" class="dao.NoticeUtil" scope="page"></jsp:useBean>
    <%@page import="dao.*" %>
    <%@page import="servlet.*" %>
<!DOCTYPE html >
<html>
<head>
<style type="text/css">
.div1{
	margin-left:10%;
	
}
td{
width:120px;
background:#ffcc66 ;
}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查看公告</title>
</head>
<body>
<% 
	List list=dao.getNotices();
	Notice notices=null;%>
	<table class="div1">
	<tr><td>编号</td><td>公告内容</td></tr></table>
	<% 
	for(int i=0;i<list.size();i++){
	notices=(Notice)list.get(i);        %>
		<div class="div1">
	<table>
				
				<tr><td><%=notices.getId() %></td><td><%=notices.getNotice() %></td></tr>
			</table>
		</div>
		
		<% 
	}
			%>
</body>
</html>